package javaweb.dao;

import javaweb.pojo.Book;

import java.util.List;

/**
 * @author shkstart
 * @creat -07-26 20:49
 */
public interface BookDao {
public int addBook(Book book);
public int  upDateBook(Book book);
public Book queryBookId(Integer id);
public int  deleteBookId(Integer id);
public List<Book> queryBooks();
 Integer queryForTocalCount();
 List<Book> queryForPageItems(Integer begin,Integer pageSize) ;

 Integer queryForTocalCountByPrice(int min, int max);

 List<Book> queryForPageItemsByPrice(int begin, int pageSize,int min,int max);
}
